﻿using System;
using UnityEngine;

namespace MrPP.iot.Guide
{
    public class GroundTracking : MonoBehaviour
    {
        
       
        void Update()
        {
            
            Plane plane = GuidePlane.Instance.plane;
            Vector3 closest = plane.ClosestPointOnPlane(this.transform.parent.position);
            this.transform.position = closest;
        }

    }
}